
#ifndef __ADS8344_H
#define __ADS8344_H

#define CS1_TRIS TRISAbits.RA5
#define CLK1_TRIS TRISCbits.RC3
#define DIN1_TRIS TRISCbits.RC4
#define DOUT1_TRIS TRISCbits.RC5
#define CS1_LAT LATAbits.LATA5

void ads8344_comms_config(void);
UINT16 read_ads8344(UINT8 channel_num);

#endif